import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'

const pinia = createPinia().use(persist)

export default pinia

// import { useUserStore } from './modules/user'
// export { useUserStore }

// 等同于
export * from './modules/user' // 导出 user 模块所有的按需导出
